Repository navigation
Allow removing Cursor, Muse, and Copilot when their CLI is missing - #20788
vincentritter wants to merge 3 commits into
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryAllows removing Cursor, Muse, and Copilot when their CLI is missing.
Reviews (4) · Last reviewed commit: "Describe Copilot's hide-only removal whe..." · Reviewed by Greptile |
|
Codex High, Opus 5.5 High, and Muse Wonder High via pi traced the Agents panel’s Delete action through the account removal command. The fallback reaches the hide step with all three CLIs absent. With Copilot absent it prints “Forgot Copilot” even though it only hides the row, and the Agents panel README still describes the CLI logouts. For the Cursor keyring case reported in #19559, the fallback deletes the auth file and leaves the Secret Service entry if one exists. The worker preflight blocked the runtime checks. The GitHub Actions workflows are awaiting maintainer approval. Tests |
The CLI fallback hides the Agents panel row and leaves the sign-in in place. Ask to hide Copilot when confirming that fallback and report the same outcome after it succeeds. Document what the three missing-CLI fallbacks do. Co-Authored-By: Codex High <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
|
Recommend: Hold — GitHub Actions has yet to run on , and the readiness check left the credential-cleanup scope for the maintainer. Codex High and Opus 5.5 High checked all three removal paths. On an ISO worker, they failed on and after restoring the base command, then passed with the fix. The CLI, agent-account, and Agents panel suites passed. Cursor and Muse remove the auth files their collectors read. Commit makes the Copilot CLI prompt and output say that its fallback hides the row and leaves the sign-in in place. |


What changes
Removing Cursor, Muse, or Copilot from the agents panel (or via
omarchy agent account remove) fails when the corresponding CLI (cursor-agent,muse, orcopilot) is not installed. For example, uninstalling Cursor via the app picker leaves~/.cursoron disk so the usage collector still treats Cursor as in use, and pressing Delete in the panel runsomarchy-agent-account-remove --yes --agent cursor, which exits withcursor-agent: command not foundbefore reachingomarchy.agents showAgent cursor false. The same happens for Muse (e.g. uninstalled or used viapi/omp/opencode) and Copilot (whencopilotis uninstalled).cursorandmuse: runcursor-agent logout/muse logoutonly when the CLI is present (omarchy-cmd-present); otherwise remove the saved CLI auth file (CURSOR_AUTH_PATH/MUSE_AUTH_PATH, defaulting to${XDG_CONFIG_HOME:-$HOME/.config}/<agent>/auth.json, expanding leading~/) and fall through to hide the agent in the panel.copilot: only require a terminal and runcopilot -i /logoutwhencopilotis present; otherwise skip straight to hiding the agent.opencode_logoutis left untouched to avoid colliding with #20281.Verification
bash test/shell.d/agent-account-test.sh: all 49 checks pass, including the new regression test coveringcursor,muse, andcopilotremoval with a restrictedPATHexcluding any host CLIs (verifying auth file deletion,showAgent <agent> false, and thatcopilotstill requires a terminal when installed)../test/cli: all 143 checks pass.bash -n bin/omarchy-agent-account-remove test/shell.d/agent-account-test.sh: passes.copilotinstalled;Panel.qmlstill opens a floating terminal for Copilot, which now succeeds and hides it rather than failing withcopilot: command not found.